package com.bjsxt.livegoods.recommendation.client.controller;

import com.bjsxt.livegoods.recommendation.client.service.RecommendationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class RecommendationController {
    @Autowired
    private RecommendationService recommendationService;

    @GetMapping
    @CrossOrigin
    public Map<String,Object> recommendation(String city){
        return recommendationService.recommendation(city);
    }
}
